package com.youzhi.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldNameConstants;

/**
 * <p>
 * 后台信件表
 * </p>
 *
 * @author xumeng
 * @since 2023-02-13
 */
@Data
@FieldNameConstants
@ApiModel(value = "Letter对象", description = "后台信件表")
public class Letter implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("类型: 1 工作流通知（类型可以做扩充）")
    private Integer type;

    @ApiModelProperty("收件人用户id")
    private Long receiveUserId;

    @ApiModelProperty("跳转连接")
    private String href;

    @ApiModelProperty("是否已读: 1是 0否")
    private Integer isRead;

    @ApiModelProperty("是否删除 0未删除 1删除")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;


}
